#include <stdio.h>
#include <string.h>
void* my_memcpy(void* s1, const void* s2, size_t n)
{
	void* ret = s1;
	while (n--)
	{
		*(char*)s1 = *(char*)s2;
		s1 = (char*)s1+1;
		s2 = (char*)s2+1;
	}
	return ret;
}
int main()
{
	int a[] = { 1,2,3,4 };
	int b[] = { 5,6,7,8 };
	my_memcpy(a, b,20);
	for (int i = 0; i <4 ; i++)
	{
		printf("%d ",*(a+i));
		
	}
	
	return 0;
}